var app = require("express")();

app.post("/api/login",function(req,res){
      res.json({
          msg:"OK"
      })
})
//首页
app.post("/business/carowners/home/getHomeInfo",function(req,res){
    res.json({
        "code": 0,
        "data": {
          "carBaseInfo": {
            "carIcon": "https://portrait.gitee.com/uploads/avatars/user/24/74330_676015863_1578916374.jpg!avatar60",
            "carModel": "CT6 2020款 28T 豪华型",
            "changeCar": false,
            "cumulativeConsumptionCount": 10,
            "cumulativeConsumptionMoney": 10000,
            "id": 0,
            "insuranceCount": 1,
            "licensePlateNumber": "川A88888",
            "maintain": "已到期",
            "yearlyInspection": "未完善"
          },
          "storeBaseInfo": {
            "cityCode": "string",
            "districtCode": "string",
            "id": "12312310867",
            "lag": 30.59,
            "lng": 104.10,
            "provinceCode": "string",
            "receptionCellphoneNumbe": "13816536688",
            "receptionFixedLine": "13816536699",
            "storeAbbreviation": "爱车巴",
            "storeAddress": "锦江区中山南路128号",
            "storeName": "爱车巴巴",
            "streetInfo": "xxx"
          }
        },
        "msg": "string",
        "paginNation": {
          "pageNo": 1,
          "pageSize": 5,
          "pages": 0,
          "total": 0
        },
        "success": true
      })
})
//预约列表
app.post("/business/carowners/home/getAppointmentRecordList", function (req, res) {
  res.json({
    "code": 0,
    "data": [{
      "appointmentContent": "预约内容",
      "appointmentTime": "2020-10-05T02:19:54.604Z",
      "customerName": "string",
      "customerTelephone": "string",
      "id": 0,
      "licensePlateNumber": "string",
      "state": 0
    }],
    "msg": "string",
    "paginNation": {
      "pageNo": 0,
      "pageSize": 0,
      "pages": 0,
      "total": 0
    },
    "success": true
  })
})
//检车列表
app.post("/business/carowners/home/getInsuranceOrderList", function (req, res) {
  res.json({
    "code": 0,
    "data": [{
      "abnormalNumber": 1,
      "carIcon": "https://portrait.gitee.com/uploads/avatars/user/24/74330_676015863_1578916374.jpg!avatar60",
      "carModel": "CT6 2020款 28T 豪华型",
      "createTime": "2020-10-05T02:19:54.642Z",
      "customerName": "string",
      "id": 12759545621463,
      "licensePlateNumber": "川A88888"
    }],
    "msg": "string",
    "paginNation": {
      "pageNo": 0,
      "pageSize": 0,
      "pages": 0,
      "total": 0
    },
    "success": true
  })
})
//检车详情
app.get("/business/carowners/home/getInsuranceOrder/12759545621463", function (req, res) {
  res.json({
    "code": 0,
    "data": {
      "inspectionStaffName": "刘凯科",
      "inspectionTime": "2020-10-05T02:19:54.632Z",
      "insuranceOrderContentResDtoList": [{
        "contentId": 0,
        "contentName": "string",
        "contentType": "string",
        "contentTypeParent": "string",
        "isQualified": 0,
        "picture": [
          "string"
        ],
        "problem": [
          "string"
        ],
        "proposal": [
          "string"
        ],
        "remarks": "string"
      }]
    },
    "msg": "string",
    "paginNation": {
      "pageNo": 0,
      "pageSize": 0,
      "pages": 0,
      "total": 0
    },
    "success": true
  })
})

//车辆列表
app.get("/business/carowners/home/getCarInfoList", function (req, res) {
  res.json({
    "code": 0,
    "data": [
      {
        "carIcon": "https://portrait.gitee.com/uploads/avatars/user/24/74330_676015863_1578916374.jpg!avatar60",
        "carModel": "CT6 2020款 28T 豪华型",
        "id": 0,
        "licensePlateNumber": "川A88899"
      },
      {
        "carIcon": "https://portrait.gitee.com/uploads/avatars/user/24/74330_676015863_1578916374.jpg!avatar60",
        "carModel": "CT6 2020款 28T 豪华型",
        "id": 1,
        "licensePlateNumber": "川A66666"
      }
    ],
    "msg": "string",
    "paginNation": {
      "pageNo": 0,
      "pageSize": 0,
      "pages": 0,
      "total": 0
    },
    "success": true
  })
})
//切换车辆
app.post("/business/carowners/home/carSwitch", function (req, res) {
  res.json({
    "code": 0,
    "data": {
      "carIcon": "https://portrait.gitee.com/uploads/avatars/user/24/74330_676015863_1578916374.jpg!avatar60",
      "carModel": "CT6 2020款 28T 豪华型",
      "changeCar": false,
      "cumulativeConsumptionCount": 10,
      "cumulativeConsumptionMoney": 1000,
      "id": 1,
      "insuranceCount": 2,
      "licensePlateNumber": "川A66666",
      "maintain": "已到期",
      "yearlyInspection": "未完善"
    },
    "msg": "string",
    "paginNation": {
      "pageNo": 0,
      "pageSize": 0,
      "pages": 0,
      "total": 0
    },
    "success": true
  })
})
/************** 订单 OR 保险单 ****************/

// 获取订单
app.post("/business/carowners/order/getOrderList", function (req, res) {
  res.json({
    "code": 0,
    "data": [{
        "carIcon": "https://portrait.gitee.com/uploads/avatars/user/24/74330_676015863_1578916374.jpg!avatar60",
        "createTime": "2020-07-01 18:00",
        "customerName": "string",
        "licensePlateNumber": "川A12345",
        "receivable": 500,
        "state": 1,
        "workOrderContent": "洗车、四轮定位、玻璃水等三项",
        "workOrderId": "202010050001",
        "workOrderNumber": "string",
        "workOrderSource": "string",
        "workOrderSourceName": "string",
        "workOrderType": "string",
        "workOrderTypeName": "string"
      },
      {
        "carIcon": "https://portrait.gitee.com/uploads/avatars/user/24/74330_676015863_1578916374.jpg!avatar60",
        "createTime": "2020-07-01 18:00",
        "customerName": "string",
        "licensePlateNumber": "川A12345",
        "receivable": 500,
        "state": 2,
        "workOrderContent": "洗车、四轮定位、玻璃水等三项",
        "workOrderId": "202010050002",
        "workOrderNumber": "string",
        "workOrderSource": "string",
        "workOrderSourceName": "string",
        "workOrderType": "string",
        "workOrderTypeName": "string"
      },
      {
        "carIcon": "https://portrait.gitee.com/uploads/avatars/user/24/74330_676015863_1578916374.jpg!avatar60",
        "createTime": "2020-07-01 18:00",
        "customerName": "string",
        "licensePlateNumber": "川A12345",
        "receivable": 500,
        "state": 3,
        "workOrderContent": "洗车、四轮定位、玻璃水等三项",
        "workOrderId": "202010050003",
        "workOrderNumber": "string",
        "workOrderSource": "string",
        "workOrderSourceName": "string",
        "workOrderType": "string",
        "workOrderTypeName": "string"
      },
      {
        "carIcon": "https://portrait.gitee.com/uploads/avatars/user/24/74330_676015863_1578916374.jpg!avatar60",
        "createTime": "2020-07-01 18:00",
        "customerName": "string",
        "licensePlateNumber": "川A12345",
        "receivable": 500,
        "state": 4,
        "workOrderContent": "洗车、四轮定位、玻璃水等三项",
        "workOrderId": "202010050004",
        "workOrderNumber": "string",
        "workOrderSource": "string",
        "workOrderSourceName": "string",
        "workOrderType": "string",
        "workOrderTypeName": "string"
      },
    ],
    "msg": "成功",
    "paginNation": {
      "pageNo": 0,
      "pageSize": 0,
      "pages": 0,
      "total": 0
    },
    "success": true
  })
})

// 获取保险单
app.post("/business/carowners/order/getAutomobileInsuranceList", function (req, res) {
  console.log(11)
  res.json({
    "code": 0,
    "data": [{
      "carIcon": "https://portrait.gitee.com/uploads/avatars/user/24/74330_676015863_1578916374.jpg!avatar60",
      "createTime": "2020-07-01 18:00",
      "customerName": "string",
      "id": 202010050001,
      "licensePlateNumber": "川A88888",
      "price": 500
    }],
    "msg": "成功",
    "paginNation": {
      "pageNo": 0,
      "pageSize": 0,
      "pages": 0,
      "total": 0
    },
    "success": true
  })
})

// 获取保险单详情
app.get("/business/carowners/order/getAutomobileInsuranceIdById/202010050001", function (req, res) {
  res.json({
    "code": 0,
    "data": {
      "beginTime": "2020-01-01",
      "billingStaffId": 0,
      "billingStaffName": "王五",
      "carId": 0,
      "ciPrice": 8880,
      "createTime": "2021-01-01 16:00",
      "ctiPrice": 8880,
      "customerId": 0,
      "customerName": "张三",
      "customerTelephone": "13800138000",
      "endTime": "2021-01-01",
      "id": 0,
      "insuranceId": "string",
      "insuranceName": "13800138000",
      "licensePlateNumber": "川A123456",
      "picture": [
        "https://portrait.gitee.com/uploads/avatars/user/24/74330_676015863_1578916374.jpg!avatar60",
        "https://portrait.gitee.com/uploads/avatars/user/24/74330_676015863_1578916374.jpg!avatar60",
        "https://portrait.gitee.com/uploads/avatars/user/24/74330_676015863_1578916374.jpg!avatar60",
      ],
      "remarks": "胎压有点不稳定，帮忙检查下"
    },
    "msg": "成功",
    "paginNation": {
      "pageNo": 0,
      "pageSize": 0,
      "pages": 0,
      "total": 0
    },
    "success": true
  })
})

// 获取订单详情
app.get("/business/carowners/order/getOrderDeatil/202010050001", function (req, res) {
  console.log('orderdetail')
  res.json({
    "code": 0,
    "msg": "成功",
    "data": {
      "workOrderInfo": {
        "workOrderNumber": "085072935314",
        "state": 3,
        "workOrderType": 5,
        "workOrderTypeName": null,
        "exclusiveConsultantStaffId": 2,
        "exclusiveConsultantName": "xlt",
        "insuranceCompany": "",
        "settlementClaimsOrderNumber": "",
        "entryFactoryTime": "2020-08-22 17:21:34",
        "estimateDeliveryTime": "2020-08-22 17:21:34",
        "currentMileage": -1,
        "nextMaintainMileage": -1,
        "nextMaintainTime": "2020-08-22 17:21:34",
        "oilMeterReading": -1,
        "customerEnjoin": "",
        "carPicture": null
      },
      "carInfo": null,
      "workOrderContentInfos": [{
        "contentType": 2,
        "contentId": 1,
        "contentName": "改掉的卡",
        "unitPrice": 200000,
        "discount": 10,
        "contentNumber": 1,
        "receivable": 200000,
        "saleStaffId": 2,
        "saleStaffName": "xlt",
        "saleStaffCommissionMoney": null,
        "constructionStaffId": null,
        "constructionStaffName": "",
        "constructionStaffCommissionMoney": null,
        "qualityTestingStaffId": null,
        "qualityTestingStaffName": ""
      }],
      "workOrderTransactionAmount": {
        "totalAmount": 200000,
        "discountAmount": 0,
        "receivableAmount": 0,
        "creditAccountMoney": 0,
        "state": "无"
      },
      "workOrderTransactionFlows": null
    },
    "success": true
  })
})

/************** 订单 OR 保险单 END ****************/



app.post("/business/carowners/cardbag/getCarSetMealCardSpendRecord", function (req, res) {
  res.json({
    "code": 0,
    "data": [{
        "carIcon": "https://portrait.gitee.com/uploads/avatars/user/24/74330_676015863_1578916374.jpg!avatar60",
        "createTime": "2020-10-05T02:20:04.189Z",
        "customerName": "string",
        "licensePlateNumber": "川A88888",
        "spendContentResDtoList": [{
          "contentName": "洗车",
          "contentNumber": 2
        }],
        "spendType": 2
      },
      {
        "carIcon": "https://portrait.gitee.com/uploads/avatars/user/24/74330_676015863_1578916374.jpg!avatar60",
        "createTime": "2020-10-05T02:20:04.189Z",
        "customerName": "string",
        "licensePlateNumber": "川A55555",
        "spendContentResDtoList": [{
          "contentName": "洗车",
          "contentNumber": 2
        }],
        "spendType": 2
      }
    ],
    "msg": "string",
    "paginNation": {
      "pageNo": 1,
      "pageSize": 5,
      "pages": 0,
      "total": 0
    },
    "success": true
  })
})

app.get("/business/carowners/cardbag/getCarSetMealCardList", function (req, res) {
  res.json({
    "code": 0,
    "data": [{
      "cardName": "套餐卡1",
      "cardNumber": "295798401875",
      "contentName": "洗车年卡",
      "contentType": 2,
      "expireTime": "2020-09-21",
      "id": 1,
      "state": 0,
      "surplusNumber": 10
    }],
    "msg": "string",
    "paginNation": {
      "pageNo": 1,
      "pageSize": 5,
      "pages": 0,
      "total": 0
    },
    "success": true
  })
})

app.get("/business/carowners/cardbag/getCarSetMealCard/1", function (req, res) {

  res.json({
    "code": 0,
    "data": [{
      "cardName": "套餐卡1",
      "cardNumber": "295798401875",
      "contentName": "洗车年卡",
      "contentType": 2,
      "expireTime": "2020-09-21",
      "id": 1,
      "state": 0,
      "surplusNumber": 10
    }],
    "msg": "string",
    "paginNation": {
      "pageNo": 1,
      "pageSize": 5,
      "pages": 0,
      "total": 0
    },
    "success": true
  })
})

app.get(`/business/carowners/cardbag/getCustomerMemberCard/2222222`, function (req, res) {
  res.json({
    "code": 0,
    "data": {
      "balance": 500000,
      "buyCardMoney": 8000,
      "cardCode": "No.932235924483",
      "cardExplain": "会员卡说明",
      "cardName": "金牌会员",
      "cardNumber": "No.9322359275979",
      "createTime": "2020-10-05T02:20:24.804Z",
      "customerMemberCardContentResDtoList": [{
        "contentName": "所有类别",
        "contentType": 1,
        "discount": 7,
        "discountType": 0
      }, {
        "contentName": "保养配件",
        "contentType": 0,
        "discount": 9,
        "discountType": 0
      }, {
        "contentName": "火花塞",
        "contentType": 0,
        "discount": 7.5,
        "discountType": 0
      }],
      "customerMemberCardId": 2222222,
      "expireTime": "2020-10-05T02:20:24.804Z",
      "giveMoney": 0,
      "giveSurplusMoney": 1200,
      "isShare": 0,
      "minimumRecharge": 0,
      "saleStaffName": "售卡人名字",
      "surplusMoney": 0
    },
    "msg": "string",
    "paginNation": {
      "pageNo": 0,
      "pageSize": 0,
      "pages": 0,
      "total": 0
    },
    "success": true
  })
})

app.get(`/business/carowners/cardbag/getCustomerMemberCardSpendRecord/2222222`, function (req, res) {
  res.json({
    "code": 0,
    "data": [{
      "carIcon": "https://himg.bdimg.com/sys/portraitn/item/546961333239373238383632db3d",
      "createTime": "2020-10-05T02:20:24.814Z",
      "customerName": "张三",
      "licensePlateNumber": "川A88888",
      "spendContentList": [
        "洗车",
        "四轮定位",
        "打蜡"
      ],
      "spendMoney": {
        "writeableName": "+954.54"
      }
    }, {
      "carIcon": "https://i2.hdslb.com/bfs/face/06206833f5e9d3a1c4aace9debcb792f30efdf5e.jpg@87w_88h_1c_100q.webp",
      "createTime": "2020-13-05T02:20:24.814Z",
      "customerName": "李四",
      "licensePlateNumber": "川A123456",
      "spendContentList": [
        "洗车"
      ],
      "spendMoney": {
        "writeableName": "-985.20"
      }
    }],
    "msg": "string",
    "paginNation": {
      "pageNo": 0,
      "pageSize": 0,
      "pages": 0,
      "total": 0
    },
    "success": true
  })
})

app.get("/business/carowners/cardbag/getCustomerMemberCardList", function (req, res) {
  res.json({
      "code": 0,
      "data": [{
        "balance": 5000,
        "buyCardMoney": 8000,
        "cardCode": "No.9322359275979",
        "cardExplain": "会员卡说明",
        "cardName": "银牌会员",
        "cardNumber": "No.9322359275979",
        "createTime": "2020-10-05T02:20:24.809Z",
        "customerMemberCardContentResDtoList": [{
          "contentName": "string",
          "contentType": 0,
          "discount": 0,
          "discountType": 0
        }],
        "customerMemberCardId": 1111111,
        "expireTime": "2020-10-05T02:20:24.809Z",
        "giveMoney": 0,
        "giveSurplusMoney": 1200,
        "isShare": 0,
        "minimumRecharge": 0,
        "saleStaffName": "string",
        "surplusMoney": 0
      }, {
        "balance": 500000,
        "buyCardMoney": 8000,
        "cardCode": "No.932235924483",
        "cardExplain": "会员卡说明",
        "cardName": "金牌会员",
        "cardNumber": "No.9322359275979",
        "createTime": "2020-10-05T02:20:24.809Z",
        "customerMemberCardContentResDtoList": [{
          "contentName": "string",
          "contentType": 0,
          "discount": 0,
          "discountType": 0
        }],
        "customerMemberCardId": 2222222,
        "expireTime": "2020-10-05T02:20:24.809Z",
        "giveMoney": 0,
        "giveSurplusMoney": 0,
        "isShare": 0,
        "minimumRecharge": 0,
        "saleStaffName": "string",
        "surplusMoney": 0
      }],
      "msg": "string",
      "paginNation": {
        "pageNo": 1,
        "pageSize": 5,
        "pages": 0,
        "total": 0
      },
      "success": true
    }

  )
})


app.get("/business/carowners/cardbag/cardBagHome",function(req,res){
  res.json({
    "code": 0,
    "msg": "成功",
    "data": {
      "memberCardCount": 2,
      "setMealCount": 0,
      "openElectronicAccount": 0,
      "cardCount": 15,
      "cardInfoList": [
        {
          "type": 0,
          "id": 12,
          "cardName": "中级会员",
          "buyCardMoney": 9000,
          "cardNumber": "KX120091133072906",
          "giveMoney": 900,
          "effectiveUnit": 0,
          "effectiveDuration": 13
        },
        {
          "type": 0,
          "id": 17,
          "cardName": "I’m just trying ",
          "buyCardMoney": 3333,
          "cardNumber": "KX120091347091134",
          "giveMoney": 555,
          "effectiveUnit": 0,
          "effectiveDuration": 0
        },
        {
          "type": 0,
          "id": 20,
          "cardName": "test",
          "buyCardMoney": 1000,
          "cardNumber": "KX120091672193474",
          "giveMoney": 0,
          "effectiveUnit": 0,
          "effectiveDuration": 0
        },
        {
          "type": 0,
          "id": 30,
          "cardName": "普通会员卡",
          "buyCardMoney": 100,
          "cardNumber": "KX120100771149089",
          "giveMoney": 20,
          "effectiveUnit": 0,
          "effectiveDuration": 1
        },
        {
          "type": 0,
          "id": 34,
          "cardName": "I can only ",
          "buyCardMoney": 22333,
          "cardNumber": "KX120101389840121",
          "giveMoney": 222,
          "effectiveUnit": 1,
          "effectiveDuration": 2
        },
        {
          "type": 0,
          "id": 35,
          "cardName": "卖卖纸皮卡",
          "buyCardMoney": 10,
          "cardNumber": "KX120101982749966",
          "giveMoney": 2,
          "effectiveUnit": 1,
          "effectiveDuration": 1
        },
        {
          "type": 0,
          "id": 37,
          "cardName": "员工不可以",
          "buyCardMoney": 222,
          "cardNumber": "KX120102200246930",
          "giveMoney": 22,
          "effectiveUnit": 0,
          "effectiveDuration": 3
        },
        {
          "type": 0,
          "id": 38,
          "cardName": "老师傅们",
          "buyCardMoney": 121255,
          "cardNumber": "KX120102210375196",
          "giveMoney": 5555,
          "effectiveUnit": 1,
          "effectiveDuration": 2
        },
        {
          "type": 1,
          "id": 4,
          "cardName": "初级套餐卡",
          "buyCardMoney": 888,
          "cardNumber": "KX220091108922903",
          "giveMoney": null,
          "effectiveUnit": 0,
          "effectiveDuration": 13
        },
        {
          "type": 1,
          "id": 5,
          "cardName": "中级会员卡",
          "buyCardMoney": 9999,
          "cardNumber": "KX220091142811379",
          "giveMoney": null,
          "effectiveUnit": 0,
          "effectiveDuration": 16
        },
        {
          "type": 1,
          "id": 6,
          "cardName": "铂金砖石卡",
          "buyCardMoney": 4888,
          "cardNumber": "KX220092009428679",
          "giveMoney": null,
          "effectiveUnit": 0,
          "effectiveDuration": 16
        },
        {
          "type": 1,
          "id": 7,
          "cardName": "检车员……",
          "buyCardMoney": 222,
          "cardNumber": "KX220102296428109",
          "giveMoney": null,
          "effectiveUnit": 2,
          "effectiveDuration": 22
        },
        {
          "type": 1,
          "id": 8,
          "cardName": "学生e de得到",
          "buyCardMoney": 2555,
          "cardNumber": "KX220102232524493",
          "giveMoney": null,
          "effectiveUnit": 2,
          "effectiveDuration": 22
        },
        {
          "type": 1,
          "id": 9,
          "cardName": "检车员、你",
          "buyCardMoney": 32,
          "cardNumber": "KX220102233130521",
          "giveMoney": null,
          "effectiveUnit": 0,
          "effectiveDuration": 2
        },
        {
          "type": 1,
          "id": 10,
          "cardName": "检车员还可以用",
          "buyCardMoney": 5,
          "cardNumber": "KX220102201739340",
          "giveMoney": null,
          "effectiveUnit": 0,
          "effectiveDuration": 3
        }
      ]
    },
    "success": true
  })
})

app.get("/business/carowners/cardbag/cardBagHome",function(req,res){
  res.json({
    "code": 0,
    "msg": "成功",
    "data": {
      "memberCardCount": 2,
      "setMealCount": 0,
      "openElectronicAccount": 0,
      "cardCount": 15,
      "cardInfoList": [
        {
          "type": 0,
          "id": 12,
          "cardName": "中级会员",
          "buyCardMoney": 9000,
          "cardNumber": "KX120091133072906",
          "giveMoney": 900,
          "effectiveUnit": 0,
          "effectiveDuration": 13
        },
        {
          "type": 0,
          "id": 17,
          "cardName": "I’m just trying ",
          "buyCardMoney": 3333,
          "cardNumber": "KX120091347091134",
          "giveMoney": 555,
          "effectiveUnit": 0,
          "effectiveDuration": 0
        },
        {
          "type": 0,
          "id": 20,
          "cardName": "test",
          "buyCardMoney": 1000,
          "cardNumber": "KX120091672193474",
          "giveMoney": 0,
          "effectiveUnit": 0,
          "effectiveDuration": 0
        },
        {
          "type": 0,
          "id": 30,
          "cardName": "普通会员卡",
          "buyCardMoney": 100,
          "cardNumber": "KX120100771149089",
          "giveMoney": 20,
          "effectiveUnit": 0,
          "effectiveDuration": 1
        },
        {
          "type": 0,
          "id": 34,
          "cardName": "I can only ",
          "buyCardMoney": 22333,
          "cardNumber": "KX120101389840121",
          "giveMoney": 222,
          "effectiveUnit": 1,
          "effectiveDuration": 2
        },
        {
          "type": 0,
          "id": 35,
          "cardName": "卖卖纸皮卡",
          "buyCardMoney": 10,
          "cardNumber": "KX120101982749966",
          "giveMoney": 2,
          "effectiveUnit": 1,
          "effectiveDuration": 1
        },
        {
          "type": 0,
          "id": 37,
          "cardName": "员工不可以",
          "buyCardMoney": 222,
          "cardNumber": "KX120102200246930",
          "giveMoney": 22,
          "effectiveUnit": 0,
          "effectiveDuration": 3
        },
        {
          "type": 0,
          "id": 38,
          "cardName": "老师傅们",
          "buyCardMoney": 121255,
          "cardNumber": "KX120102210375196",
          "giveMoney": 5555,
          "effectiveUnit": 1,
          "effectiveDuration": 2
        },
        {
          "type": 1,
          "id": 4,
          "cardName": "初级套餐卡",
          "buyCardMoney": 888,
          "cardNumber": "KX220091108922903",
          "giveMoney": null,
          "effectiveUnit": 0,
          "effectiveDuration": 13
        },
        {
          "type": 1,
          "id": 5,
          "cardName": "中级会员卡",
          "buyCardMoney": 9999,
          "cardNumber": "KX220091142811379",
          "giveMoney": null,
          "effectiveUnit": 0,
          "effectiveDuration": 16
        },
        {
          "type": 1,
          "id": 6,
          "cardName": "铂金砖石卡",
          "buyCardMoney": 4888,
          "cardNumber": "KX220092009428679",
          "giveMoney": null,
          "effectiveUnit": 0,
          "effectiveDuration": 16
        },
        {
          "type": 1,
          "id": 7,
          "cardName": "检车员……",
          "buyCardMoney": 222,
          "cardNumber": "KX220102296428109",
          "giveMoney": null,
          "effectiveUnit": 2,
          "effectiveDuration": 22
        },
        {
          "type": 1,
          "id": 8,
          "cardName": "学生e de得到",
          "buyCardMoney": 2555,
          "cardNumber": "KX220102232524493",
          "giveMoney": null,
          "effectiveUnit": 2,
          "effectiveDuration": 22
        },
        {
          "type": 1,
          "id": 9,
          "cardName": "检车员、你",
          "buyCardMoney": 32,
          "cardNumber": "KX220102233130521",
          "giveMoney": null,
          "effectiveUnit": 0,
          "effectiveDuration": 2
        },
        {
          "type": 1,
          "id": 10,
          "cardName": "检车员还可以用",
          "buyCardMoney": 5,
          "cardNumber": "KX220102201739340",
          "giveMoney": null,
          "effectiveUnit": 0,
          "effectiveDuration": 3
        }
      ]
    },
    "success": true
  })
})

app.get("/business/carowners/cardbag/getCustomerElectronicAccountCardList", function (req, res) {
  res.json({
    "code": 0,
    "data": [
      {
        "cardCode": "0",
        "cardName": "金牌会员",
        "cardType": 0,
        "customerMemberCardId": "No.9322359275979",
        "expireTime": "2020-10-23T00:50:54.779Z",
        "lag": "string",
        "lng": "string",
        "storeAbbreviation": "string",
        "surplusMoney": 3000
      },
      {
        "cardCode": "0",
        "cardName": "洗车年卡",
        "cardType": 1,
        "customerMemberCardId": "No.9322359276666",
        "expireTime": "2020-10-23",
        "lag": "string",
        "lng": "string",
        "storeAbbreviation": "string",
        "surplusMoney": 3000
      }
    ],
    "msg": "string",
    "paginNation": {
      "pageNo": 1,
      "pageSize": 5,
      "pages": 0,
      "total": 0
    },
    "success": true
    })
})

/*******会员卡充值**************/
app.post("/business/carowners/cardbag/memberCardRecharge", function (req, res) {
  res.json({
    "code": 0,
    "data": 0,
    "msg": "string",
    "paginNation": {
      "pageNo": 0,
      "pageSize": 0,
      "pages": 0,
      "total": 0
    },
    "success": true
  })
})

app.listen(5000)